import { ElSelect, ElOption } from 'element-plus'
import useCommonApi from '@/hooks/web/useCommonApi'
import { defineComponent } from 'vue'
const { useIndicatorSystem } = useCommonApi()

export default defineComponent({
  setup() {
    const render = async () => {
      const res = await useIndicatorSystem()
      return (
        <ElSelect>
          {res.map((item) => (
            <ElOption key={item.value} label={item.label} value={item.value}></ElOption>
          ))}
        </ElSelect>
      )
    }
    return render
  }
})
